﻿<%@ Page Title=" " Language="VB" MasterPageFile="~/Devida/Siste.master" AutoEventWireup="false" CodeFile="AvanceFisico.aspx.vb" Inherits="Devida_AvanceFisico" Theme="Yahoo-Ocean" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register src="ucAlerta.ascx" TagName="Alerta" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <base target="_self" />
    <link href="../css/EstilosFrm.css" type="text/css" rel="stylesheet" />
    <link href="../css/i_consultas.css" type="text/css" rel="stylesheet" />
    <link href="../css/diseno.css" type="text/css" rel="Stylesheet" />
    <link href="../css/style2.css" type="text/css" rel="stylesheet" />
    <link href="../css/StyleSheet.css" type="text/css" rel="stylesheet" />

    <script src="../js/jsForms/js_Consulta.js" type="text/javascript"></script>
    <script src="../js/js_windowpopup.js" type="text/javascript"></script>
    <script language="javascript" src="../Script/PrintScript.js" type="text/javascript"> </script>

    <script language="javascript" type="text/javascript">
        function AcceptNum(evt) {
            var nav4 = window.Event ? true : false;
            var key = nav4 ? evt.which : evt.keyCode;
            return (key <= 13 || (key >= 48 && key <= 57) || key == 44);
        }
    </script>
    <script language="javascript" type="text/javascript">
        function AcceptNum2(evt) {
            var nav4 = window.Event ? true : false;
            var key = nav4 ? evt.which : evt.keyCode;
            return (key <= 13 || key == 47 || (key >= 48 && key <= 57));
        }
    </script>
    <script language="javascript" type="text/javascript">

        function Resaltar_On(GridView) {
            if (GridView != null) {
                GridView.originalBgColor = GridView.style.backgroundColor;
                GridView.style.backgroundColor = "#5BADFF";
            }
        }

        function Resaltar_Off(GridView) {
            if (GridView != null) {
                GridView.style.backgroundColor = GridView.originalBgColor;
            }
        }

        function mostrar_procesar()
        {
            document.getElementById("procesando_div").style.display = 'inline';
            setTimeout('document.images["procesando_gif"].src="Imagenes/ajax-loader.gif"', 200);
        }
    </script>
    <script type="text/javascript">
        function setHeight(txtdesc) {
            //txtdesc.style.height = "0px"
            txtdesc.style.height = txtdesc.scrollHeight + "px";
        }
    </script>
    <style type="text/css">
        .style1 {
            width: 100%;
        }

        .style2 {
            height: 9px;
        }
      
    </style>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cph_name" Runat="Server">

<asp:Label ID="Label1" runat="server" Font-Names="Arial" Font-Size="17px" ForeColor="white" Text="Avance  Físico" Font-Bold="True" ></asp:Label>               

</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table cellpadding="0" cellspacing="0" width="1200px" style="border: 1px solid #295EAB; text-align: left; color: #FFFFFF;" bgcolor="#009933">
        <tr>
        <td>
            <table cellpadding="0" cellspacing="0" width="1200px">
                <tr>
                    <td class="btn" align="left" style="color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; width: 700px; height: 25px; font-size: medium;"
                        bgcolor="#009933">
                        <asp:Label ID="Label2" runat="server" Font-Names="Arial" Font-Size="9px" ForeColor="white" Font-Bold="True"></asp:Label>
                    </td>
                    <td class="btn" align="left"
                        style="color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; width: 50px; height: 25px; font-size: medium;" bgcolor="#009933"></td>
                    <td class="btn" align="left"
                        style="color: #FFFFFF; font-family: Arial, Helvetica, sans-serif; width: 100px; height: 25px; font-size: medium;" bgcolor="#009933"></td>
                </tr>
            </table> 
        </td>
        </tr>      
   </table>             
    <table cellpadding="0" cellspacing="0" width="1200px">
                <tr>
                  <td>
                      <table cellpadding="0" cellspacing="0" style="width: 1200px; height: 300px;">
                          <tr>
                              <td>
                                  <asp:UpdatePanel ID="upFechas" runat="server">
                                      <ContentTemplate>
                                          <table cellpadding="0" cellspacing="0" width="1201px" style="border: 1px solid #295EAB; text-align: left; color: #FFFFFF;"
                                              bgcolor="green">
                                              <tr>
                                                  <td width="244px" class="style3">&nbsp;
                                            <asp:Label ID="lblCodigo" runat="server" Font-Names="Arial" Font-Size="10px" ForeColor="white">                           
                                            </asp:Label>
                                                  </td>
                                                  <td width="200px" class="style3">&nbsp;
                                            <asp:Label ID="lblNombrePeriodo" runat="server" Font-Names="Arial" Font-Size="10px" ForeColor="yellow">                           
                                            </asp:Label>
                                                  </td>
                                                  <td>
                                                      <asp:TextBox ID="txt" runat="server" Width="50px" CssClass="frm_formato_caja"></asp:TextBox>
                                                      <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txt"
                                                          PopupButtonID="ImgCalIni1" />
                                                      <asp:ImageButton ID="ImgCalIni1" runat="server" ImageUrl="~/Imagenes/Calendar_scheduleHS.png" ToolTip="Click para elegir Fecha1" />
                                                      <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ForeColor="Orange" ToolTip="Error de la Fecha 1" runat="server" ControlToValidate="txt"
                                                          ErrorMessage="*" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
                                                          ValidationGroup="miPrueba"></asp:RegularExpressionValidator>
                                                  </td>
                                                  <td class="style3">
                                                      <asp:TextBox ID="txt2" runat="server" CssClass="frm_formato_caja" Width="50px"></asp:TextBox>
                                                      <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txt2" PopupButtonID="ImgCalIni2" />
                                                      <asp:ImageButton ID="ImgCalIni2" runat="server" ImageUrl="~/Imagenes/Calendar_scheduleHS.png" ToolTip="Click para elegir Fecha2" />
                                                      <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ForeColor="Orange" ToolTip="Error de la Fecha 2" runat="server" ControlToValidate="txt2"
                                                          ErrorMessage="*" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
                                                          ValidationGroup="miPrueba"></asp:RegularExpressionValidator>
                                                  </td>
                                                  <td class="style3">
                                                      <asp:TextBox ID="txt3" runat="server" Width="50px" CssClass="frm_formato_caja"></asp:TextBox>
                                                      <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txt3" PopupButtonID="ImgCalIni3" />
                                                      <asp:ImageButton ID="ImgCalIni3" runat="server" ImageUrl="~/Imagenes/Calendar_scheduleHS.png" ToolTip="Click para elegir Fecha3" />
                                                      <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ForeColor="Orange" ToolTip="Error de la Fecha 3" runat="server" ControlToValidate="txt3"
                                                          ErrorMessage="*" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
                                                          ValidationGroup="miPrueba"></asp:RegularExpressionValidator>
                                                  </td>
                                                  <td class="style3">

                                                      <asp:TextBox ID="txt4" runat="server" Width="50px" CssClass="frm_formato_caja"></asp:TextBox>

                                                      <cc1:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txt4"
                                                          PopupButtonID="ImgCalIni4" />
                                                      <asp:ImageButton ID="ImgCalIni4" runat="server" ImageUrl="~/Imagenes/Calendar_scheduleHS.png" ToolTip="Click para elegir Fecha4" />
                                                      <asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ForeColor="Orange" ToolTip="Error de la Fecha 4" ControlToValidate="txt4"
                                                          ErrorMessage="*" ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d"
                                                          ValidationGroup="miPrueba"></asp:RegularExpressionValidator>
                                                  </td>
                                                  <td width="380px" class="style3">
                                                      <asp:CheckBox ID="chkTerminado" Text="Terminar Proceso" runat="server" AutoPostBack="true" />
                                                  </td>
                                              </tr>
                                          </table>
                                      </ContentTemplate>
                                  </asp:UpdatePanel>
                              </td>
                          </tr>
                          <tr>
                              <td>
                                  <div style="border: solid 1px #99aabd; width: 1200px; height: 350px; overflow: auto;"
                                      align="center">
                                      <asp:UpdatePanel ID="UpdatePanel1" runat="server" Width="1200px">
                                          <ContentTemplate>
                                              <asp:GridView ID="gv_fisico" runat="server" AutoGenerateColumns="False" CellPadding="4"
                                                  CssClass="grid" Font-Size="10pt" GridLines="None" Width="1200px" DataKeyNames="ID_POA_ACTIVIDAD_FISICA">
                                                  <RowStyle ForeColor="#333333" Font-Bold="False" BackColor="#F7F6F3" />
                                                  <Columns>
                                                      <asp:BoundField DataField="CODIGO" HeaderText="Cod" ItemStyle-HorizontalAlign="LEFT" ItemStyle-VerticalAlign="Top" />
                                                      <asp:BoundField DataField="TAREA_ACTIVIDAD" HeaderText="Componente/Actividad" ItemStyle-HorizontalAlign="LEFT" ItemStyle-VerticalAlign="Top" />
                                                      <asp:BoundField DataField="DESCRIPCION" HeaderText="Unidad de Medida" ItemStyle-HorizontalAlign="Left" ItemStyle-VerticalAlign="Top" />
                                                      <asp:BoundField DataField="META_ANUAL" HeaderText="Meta Anual" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" DataFormatString="{0:N2}" />
                                                      <asp:BoundField DataField="MES1" HeaderText="Meta Prog. Mes" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" DataFormatString="{0:N2}" />
                                                      <asp:BoundField DataField="ACUMULADO" HeaderText="Meta Prog. Acum." ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" DataFormatString="{0:N2}" />

                                                      <%--By Tigrito, field add 22/05/2013--%>

                                                      <asp:TemplateField HeaderText="Ejec. Acum. Mes Anterior">
                                                          <HeaderTemplate>
                                                              <asp:Label ID="lbl2" runat="server" Style="color: black" Text="Ejec. Acum. Mes Anterior"></asp:Label>
                                                          </HeaderTemplate>
                                                          <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
                                                          <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="TextBoxEjecM" EnableViewState="true" Style="text-align: right" Width="70px" Enabled="False"
                                                                  Font-Size="11px" CssClass="center" runat="server" Text='<%# String.Format("{0:###,###0.00}", Eval("EJEC_EN_EL_MES"))%>'>
                                                              </asp:TextBox>
                                                              <cc1:FilteredTextBoxExtender ID="FilterAux1" runat="server" TargetControlID="TextBoxEjecM"
                                                                  FilterType="Numbers, Custom" ValidChars=".">
                                                              </cc1:FilteredTextBoxExtender>
                                                          </ItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Visita 1">
                                                          <HeaderTemplate>
                                                              <asp:Label ID="lbl" runat="server" Style="color: blue" Text="Visita 1 <br/> (**)"></asp:Label>
                                                          </HeaderTemplate>
                                                          <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
                                                          <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="TextBox1" EnableViewState="true" Style="text-align: right" Width="70px" Font-Size="11px" CssClass="center" runat="server" Text='<%# Eval("META_MENSUAL1") %>'>
                                                              </asp:TextBox>
                                                              <cc1:FilteredTextBoxExtender ID="ftbeNoPedimento" runat="server" FilterType="Numbers, Custom" ValidChars="."
                                                                  TargetControlID="TextBox1">
                                                              </cc1:FilteredTextBoxExtender>
                                                              <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" FilterType="Numbers, Custom" ValidChars="."
                                                                  TargetControlID="TextBox2">
                                                              </cc1:FilteredTextBoxExtender>
                                                              <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" runat="server" FilterType="Numbers, Custom" ValidChars="."
                                                                  TargetControlID="TextBox3">
                                                              </cc1:FilteredTextBoxExtender>
                                                              <cc1:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" runat="server" FilterType="Numbers, Custom" ValidChars="."
                                                                  TargetControlID="TextBox4">
                                                              </cc1:FilteredTextBoxExtender>
                                                          </ItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Visita 2">
                                                          <HeaderTemplate>
                                                              <asp:Label ID="lbl2" runat="server" Style="color: blue" Text="Visita 2 <br/> (**)"></asp:Label>
                                                          </HeaderTemplate>
                                                          <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
                                                          <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="TextBox2" EnableViewState="true" Style="text-align: right" Width="70px" Font-Size="11px" CssClass="center" runat="server" Text='<%# Eval("META_MENSUAL2") %>'>
                                                              </asp:TextBox>
                                                          </ItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Visita 3">
                                                          <HeaderTemplate>
                                                              <asp:Label ID="lbl3" runat="server" Style="color: blue" Text="Visita 3 <br/> (**)"></asp:Label>
                                                          </HeaderTemplate>
                                                          <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
                                                          <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="TextBox3" EnableViewState="true" Style="text-align: right" Width="70px" Font-Size="11px" CssClass="center" runat="server" Text='<%# Eval("META_MENSUAL3") %>'>
                                                              </asp:TextBox>
                                                          </ItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Visita 4">
                                                          <HeaderTemplate>
                                                              <asp:Label ID="lbl4" runat="server" Style="color: blue" Text="Visita 4 <br/> (**)"></asp:Label>
                                                          </HeaderTemplate>
                                                          <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
                                                          <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="TextBox4" EnableViewState="true" Style="text-align: right" Width="70px" Font-Size="11px" CssClass="center" runat="server" Text='<%# Eval("META_MENSUAL4") %>'>
                                                              </asp:TextBox>
                                                              <asp:HiddenField ID="hfActfis" runat="server" Value='<%# Eval("ID_POA_ACTIVIDAD_FISICA") %>' />
                                                              <asp:HiddenField ID="hfPlan" runat="server" Value='<%# Eval("ID_PLAN_TRABAJO_POA") %>' />
                                                              <asp:HiddenField ID="hfCodigo" runat="server" Value='<%# Eval("ID_POA_FISICO_PERSONA") %>' />
                                                              <asp:HiddenField ID="hfMes" runat="server" Value='<%# Eval("MES") %>' />
                                                              <asp:HiddenField ID="hfAño" runat="server" Value='<%# Eval("ANHIO") %>' />
                                                          </ItemTemplate>
                                                      </asp:TemplateField>

                                                      <%--By Tigrito(21/08/2013): --%>
                                                      <asp:BoundField DataField="EJEC_PRESENTE_MES" HeaderText="EJEC. MES" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" ItemStyle-BackColor="PowderBlue" ItemStyle-ForeColor="RoyalBlue" DataFormatString="{0:N1}" />
                                                      <asp:BoundField DataField="PORC_EJEC_PRESENTE_MES" HeaderText="EJEC. MES % " ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" ItemStyle-BackColor="PowderBlue" ItemStyle-ForeColor="Black" ItemStyle-Wrap="False" DataFormatString="{0:P1}" />
                                                      <asp:BoundField DataField="EJEC_ACUM_PRESENTE_MES" HeaderText="EJEC. ACUM." ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" ItemStyle-BackColor="PowderBlue" ItemStyle-ForeColor="RoyalBlue" DataFormatString="{0:N1}" />
                                                      <asp:BoundField DataField="PORC_EJEC_ACUM_PRESENTE_MES" HeaderText="EJEC. ACUM %" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" ItemStyle-BackColor="PowderBlue" ItemStyle-ForeColor="Black" ItemStyle-Wrap="False" DataFormatString="{0:P1}" />

                                                      <asp:TemplateField HeaderText="Observacion">
                                                          <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
                                                          <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
                                                          <ItemTemplate>
                                                              <asp:TextBox ID="TextBox5" EnableViewState="true" Style="text-align: justify" Width="380px" Font-Size="small" runat="server" TextMode="MultiLine" Text='<%# Eval("OBSERVACIONES") %>'>
                                                              </asp:TextBox>
                                                          </ItemTemplate>
                                                      </asp:TemplateField>
                                                      <asp:TemplateField HeaderText="Editar">
                                                <ItemTemplate>
                                                    <%--<asp:ImageButton ID="imgbtn" ImageUrl="~/Imagenes/edit1.png" runat="server" Width="24" Height="24" onclick="imgbtn_Click" />  --%>
                                                    <asp:Button ID="imgbtn" runat="server" Text="" onclick="imgbtn_Click" CssClass="boton_Edit" Width="16px" />
                                                </ItemTemplate>
                                                </asp:TemplateField>
                                                  </Columns>
                                                  <SelectedRowStyle BackColor="#5BADFF" Font-Bold="True" ForeColor="#333333" />
                                                  <AlternatingRowStyle BackColor="#CEDAF2" ForeColor="#003366" />                                                
                                              </asp:GridView>
                                          </ContentTemplate>
                                      </asp:UpdatePanel>
                                  </div>
                                  <%--By Tigrito (14/06/2013): div AreaImpresionFormatoSinDatos SIN DATOS --%>

                                  <div id="AreaImpresionFormatoSinDatos" style="width: 100%; display: none;">
                                      <center> 
                                 <table width="1000px">
                                   <tr>
                                 <td align="center">
                                 <asp:Label ID="Label5" text-align="center" runat="server" style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold;"
                                         ForeColor="black" Text="FORMATO 02 <br/><br/> FICHA DE SEGUIMIENTO DE METAS <br/><br/> Avance Físico&nbsp;" Font-Size ="15px" 
                                 Font-Bold="True" ></asp:Label>
                                 </td>
                                 </tr>
                                 <tr>
                                 <td>&nbsp;</td>
                                 </tr>
                                   <tr>
                                   <td align = "left">
                                       <asp:Label ID="Label11" runat="server" align="left"  Font-Names="Arial, Helvetica, sans-serif" Font-Size="11px" ForeColor="black" Font-Bold="false" ></asp:Label>
                                      <br/>
                                       <asp:Label ID="Label4" runat="server" Font-Names="Arial, Helvetica, sans-serif" Font-Size="11px" ForeColor="black" >
                                      </asp:Label>
                                      <br/>
                                    <asp:Label ID="Label15" runat="server" Font-Names="Arial, Helvetica, sans-serif" Font-Size="11px" ForeColor="black">
                                    </asp:Label>
                                  </td>
                                   <td >&nbsp;</td> 
                                   <td align = "right">
                                   </td>                                
                                 </tr> 
                                   <tr>
                                 <td>
                                 <asp:Label ID="lblNombMonitoreadorFormatoSolo" runat="server" align="left" Font-Names="Arial, Helvetica, sans-serif" Font-Size="11px" ForeColor="black" Font-Bold="false"></asp:Label>
                                 <asp:Label ID="no" runat="server" width="10px">&nbsp;</asp:Label>                                  
                                 </td>
                                 </tr>
                                 </table>
                                 <table width="1000px">
                                 <tr>
                                 <td>&nbsp;</td>
                                 </tr>
                                 </table>                                  
                                <asp:UpdatePanel ID="UpdatePanel2" runat="server" Width="1000px">
                                  <ContentTemplate>
                                   <asp:GridView ID="gv_formato" runat="server" AutoGenerateColumns="False" GridLines="both" CellPadding="4" Font-Size="10pt" BorderColor="Black" Width="1000px"> 
                                    <RowStyle  Font-Names ="Arial, Helvetica, sans-serif "  Font-Size ="11px" />                                
                                    <Columns>                                   
                                    <asp:BoundField DataField="CODIGO" HeaderText="Cod" ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Size="8pt"  ItemStyle-VerticalAlign="Top"  />
                                    <asp:BoundField DataField="TAREA_ACTIVIDAD" HeaderText="Componente/Actividad" ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Size="8pt"  ItemStyle-VerticalAlign="Top"  />
                                    <asp:BoundField DataField="DESCRIPCION" HeaderText="Unidad de Medida"  ItemStyle-HorizontalAlign="Left" ItemStyle-Font-Size="8pt"  ItemStyle-VerticalAlign="Top"  />
                                    <asp:BoundField DataField="META_ANUAL" HeaderText="Meta Anual" ItemStyle-HorizontalAlign="Right"  ItemStyle-Font-Size="8pt"  DataFormatString="{0:N1}"  ItemStyle-VerticalAlign="Top"  />
                                    <asp:BoundField DataField="MES1" HeaderText="Meta Prog. Mes" ItemStyle-HorizontalAlign="Right"  ItemStyle-Font-Size="8pt"  DataFormatString="{0:N1}" ItemStyle-Width="70px"   ItemStyle-VerticalAlign="Top" />
                                    <asp:BoundField DataField="ACUMULADO" HeaderText="Monto Acum." ItemStyle-HorizontalAlign="Right" DataFormatString="{0:N1}"  ItemStyle-Font-Size="8pt"  ItemStyle-VerticalAlign="Top"  />                                           
                                    <asp:TemplateField HeaderText="Visita 1">
	                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                                <ItemTemplate>
	                                <asp:Label ID="TextBox1" EnableViewState="true" Width="50px" font-size="small" CssClass="center"  runat="server" Text=''>
	                                </asp:Label>
	                                </ItemTemplate>
	                                </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Visita 2">
	                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                                <ItemTemplate>
	                                <asp:Label ID="TextBox2" EnableViewState="true" Width="50px" font-size="small" CssClass="center"  runat="server" Text='' >
	                                </asp:Label>
	                                </ItemTemplate>
	                                </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Visita 3">
	                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                                <ItemTemplate>
	                                <asp:Label ID="TextBox3" EnableViewState="true" Width="50px" font-size="small" CssClass="center"  runat="server"  Text=''>
	                                </asp:Label>
	                                </ItemTemplate>
	                                </asp:TemplateField>                                              
                                    <asp:TemplateField HeaderText="Visita 4">
	                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center"  />
	                                <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                                <ItemTemplate>
	                                <asp:Label ID="TextBox4" EnableViewState="true" Width="50px" font-size="small" CssClass="center"  runat="server" Text='' >
                                    </asp:Label>                  
	                                </ItemTemplate>
	                                </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Observación">
	                                <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                <ItemStyle CssClass="gridItem" HorizontalAlign="Right" />
	                                <ItemTemplate>
	                                <asp:Label ID="TextBox5" EnableViewState="true" Width="300px" font-size="small" CssClass="center"  runat="server"  Text=''>
	                                </asp:Label>
	                                </ItemTemplate>
	                                </asp:TemplateField>                                                                                                                                   
                                    </Columns>                                                                      
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>                                 
                                  <table width ="1000px" >
                                 <tr>
                                 <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                 <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                 <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                 <td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                 <td align="right"  >------------------------------</td><td>&nbsp;</td>
                                 </tr>
                                 <tr>
                                 <td align="right" style="font-size:10pt">ESPECIALISTA TECNICO</td><td>&nbsp;</td>
                                 </tr>
                                 </table>
                         </center>
                                  </div>

                                  <%--By Tigrito (14/06/2013): div AreaImpresionFormatoConDatos CON DATOS--%>
                                  <div id="AreaImpresionFormatoConDatos" style="width: 100%; display: none;">
                                      <center>
                                         <table width="1000px">
                                          <tr>
                                          <td align="center">
                                         <asp:Label ID="Label3" text-align="center" runat="server" style="font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: bold;"
                                                 ForeColor="black" Text="FORMATO 02 <br/><br/> FICHA DE SEGUIMIENTO DE METAS <br/><br/> Avance Físico&nbsp;" Font-Size ="15px" 
                                         Font-Bold="True" ></asp:Label>
                                  
                                          </td>
                                          </tr>
                                           <tr>
                                           <td>&nbsp;</td>
                                           </tr>
                                           <tr>
                                           <td align = "left">

                                           <asp:Label ID="Label13" runat="server" align="left" Font-Names="Arial, Helvetica, sans-serif"
                                             Font-Size="11px" ForeColor="black"  
                                             Font-Bold="false"></asp:Label>

                                            <br/>
                                            <asp:Label ID="Label6" runat="server"  align="left" Font-Names="Arial, Helvetica, sans-serif"
                                             Font-Size="11px" ForeColor="black"  
                                             Font-Bold="false"></asp:Label>
                                             <br/>
                                             <asp:Label ID="Lblp" runat="server"  align="left" Font-Names="Arial, Helvetica, sans-serif"
                                             Font-Size="11px" ForeColor="black"  
                                             Font-Bold="false"></asp:Label>
                             
                                 
                                           </td>
                                           <td width="20px" >&nbsp;</td> 
                                           <td align = "right">
                                
                                           </td>
                                           </tr>
                                          <tr>
                                         <td>
                                         <asp:Label ID="lblNombMonitoreadorFormatoDatos" runat="server" align="left" Font-Names="Arial, Helvetica, sans-serif" Font-Size="11px" ForeColor="black" Font-Bold="false"></asp:Label>                               
                                         <asp:Label ID="Label14" runat="server" width="10px">&nbsp;</asp:Label>                                
                                         </td>
                                         </tr>
                                          </table>                                  

                                       <%--Esta tabla era para las fechas de las visitas--%>
<%--                                  <table width="1000px" border="0" >
                                         <tr>
                                           <td  width="440px" class="style3"> &nbsp;</td>                               
                                           <td >
                                         <asp:Label ID="lblf1" EnableViewState="true" Width="50px" style="font-family: Arial, Helvetica, sans-serif; font-size: 8pt"   CssClass="center"  runat="server" Text=''></asp:Label>
                                         </td>
                                           <td class="style3" >
                                            <asp:Label ID="lblf2" EnableViewState="true" Width="50px"  CssClass="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 8pt"   runat="server" Text=''></asp:Label>
                                             </td>
                                           <td class="style3">
                                            <asp:Label ID="lblf3" EnableViewState="true" Width="50px" CssClass="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 8pt"  runat="server" Text=''></asp:Label>
                                          </td>
                                           <td class="style3" > 
                                            <asp:Label ID="lblf4" EnableViewState="true" Width="50px"  CssClass="center" style="font-family: Arial, Helvetica, sans-serif; font-size: 8pt"  runat="server" Text=''></asp:Label>
                                           </td>
                                            <td width="347px" class="style3">&nbsp; </td>
                                         </tr> 
                                       </table>    --%>
                                          
                                                                                                       
                                         <asp:UpdatePanel ID="UpdatePanel3" runat="server" Width="1000px">
                                        <ContentTemplate>
                                        <asp:GridView ID="gv_doc" runat="server" AutoGenerateColumns="False" GridLines="both"
                                           CellPadding="4" BorderColor="Black" 
                                              Width="1000px"> 
                                            <RowStyle Font-Names="Arial, Helvetica, sans-serif" BackColor="White" ForeColor="#000000"/>
                                            <Columns>
                                            <asp:BoundField DataField="CODIGO" HeaderText="Cod" ItemStyle-HorizontalAlign ="Left" ItemStyle-VerticalAlign="Top" ItemStyle-Font-Size="8pt"   />
                                            <asp:BoundField DataField="TAREA_ACTIVIDAD" HeaderText="Componente/Actividad" ItemStyle-HorizontalAlign ="Left" ItemStyle-VerticalAlign="Top"  ItemStyle-Font-Size="8pt"   />
                                            <asp:BoundField DataField="DESCRIPCION" HeaderText="Unidad de Medida" ItemStyle-Font-Size="8pt" ItemStyle-VerticalAlign="Top" />
                                            <asp:BoundField DataField="META_ANUAL" HeaderText="Meta Anual" ItemStyle-Font-Size="8pt" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" DataFormatString="{0:N1}"  />
                                            <asp:BoundField DataField="MES1" HeaderText="Meta Prog. Mes" ItemStyle-Font-Size="8pt" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" DataFormatString="{0:N1}"   ItemStyle-Width="70px" />
                                            <asp:BoundField DataField="ACUMULADO" HeaderText="Monto Acum." ItemStyle-Font-Size="8pt" ItemStyle-HorizontalAlign="Right" ItemStyle-VerticalAlign="Top" DataFormatString="{0:N1}" />                                                                                        
                                             <asp:TemplateField HeaderText="Visita 1" HeaderStyle-VerticalAlign="Top" >
	                                             <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                             <ItemStyle CssClass="gridItem" HorizontalAlign="Right"  VerticalAlign="Top" />
	                                                 <ItemTemplate>
	                                                     <asp:Label ID="TextBox1" EnableViewState="true" Width="50px" DataFormatString="{0:N1}" font-size="8pt"   runat="server" Text='<%# Eval("META_MENSUAL1") %>'>
	                                                      </asp:Label>
	                                                 </ItemTemplate>
	                                         </asp:TemplateField>

                                          <asp:TemplateField HeaderText="Visita 2" HeaderStyle-VerticalAlign="Top" >
	                                     <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                     <ItemStyle CssClass="gridItem" HorizontalAlign="Right"  VerticalAlign="Top" />
	                                         <ItemTemplate>
	                                             <asp:Label ID="TextBox2" EnableViewState="true" Width="50px" DataFormatString="{0:N1}" font-size="8pt"   runat="server" Text='<%# Eval("META_MENSUAL2") %>'>
	                                              </asp:Label>
	                                         </ItemTemplate>
	                                     </asp:TemplateField>

                                          <asp:TemplateField HeaderText="Visita 3" HeaderStyle-VerticalAlign="Top" >
	                                     <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                     <ItemStyle CssClass="gridItem" HorizontalAlign="Right"  VerticalAlign="Top" />
	                                         <ItemTemplate>
	                                             <asp:Label ID="TextBox3" EnableViewState="true" DataFormatString="{0:N1}" Width="50px" font-size="8pt"   runat="server" Text='<%# Eval("META_MENSUAL3") %>'>
	                                              </asp:Label>
	                                         </ItemTemplate>
	                                     </asp:TemplateField>
                                              
                                        <asp:TemplateField HeaderText="Visita 4" HeaderStyle-VerticalAlign="Top" >
	                                     <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                     <ItemStyle CssClass="gridItem" HorizontalAlign="Right"  VerticalAlign="Top" />
	                                         <ItemTemplate>
	                                             <asp:Label ID="TextBox4" EnableViewState="true" Width="50px" DataFormatString="{0:N1}" font-size="8pt"   runat="server" Text='<%# Eval("META_MENSUAL4") %>'>
                                                 </asp:Label>                  
                                                  <asp:HiddenField ID="hfCodigo" runat="server" Value='' />
	                                         </ItemTemplate>
	                                     </asp:TemplateField>

                                      <asp:TemplateField HeaderText="Observación">
	                                 <HeaderStyle CssClass="gridHead" HorizontalAlign="Center" />
	                                 <ItemStyle CssClass="gridItem" HorizontalAlign="Right"  VerticalAlign="Top" />
	                                     <ItemTemplate>
	                                         <asp:Label ID="TextBox5" EnableViewState="true" Width="320px" font-size="9pt" Style="text-align:justify"  runat="server" Text='<%# Eval("OBSERVACIONES") %>'>
	                                          </asp:Label>
	                                     </ItemTemplate>
	                                 </asp:TemplateField>                                                                                                                                          
                                            </Columns>     
                                        <HeaderStyle Font-size="9pt" />
                                        <FooterStyle HorizontalAlign="Right" Font-Size="9pt" Font-Names="Arial" />
                                        <PagerStyle Font-Names="Verdana" Font-Size="10px" Wrap="False" />                                                                           
                                        </asp:GridView>

                                    </ContentTemplate>
                                </asp:UpdatePanel>
                                     <table width="1000px" >
                                         <tr>
                                         <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                         <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                         <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                         <td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                         <td align="right"  >------------------------------</td><td>&nbsp;</td>
                                         </tr>
                                         <tr>
                                         <td align="right" style="font-size:10pt">ESPECIALISTA TECNICO</td><td>&nbsp;</td>
                                         </tr>
                                         </table>
                                 </center>
                                  </div>

                              </td>
                          </tr>
                      </table>
                  </td>
                </tr>
        </table>   
        <table width="1200px">
            <tr>
             <td width="120px" align="left">
                 <asp:UpdatePanel ID="upPrueba" runat="server" ValidationGroup="miPrueba" UpdateMode="Conditional">
                     <Triggers>
                         <asp:AsyncPostBackTrigger ControlID="btn_guardar" EventName="Click" />
                     </Triggers>
                     <ContentTemplate>
                         <asp:ImageButton ID="btn_guardar" runat="server" ToolTip="Guardar Avance Fisico" ImageUrl="~/Imagenes/btnGuardar.png" ValidationGroup="miPrueba" />
                     </ContentTemplate>
                 </asp:UpdatePanel>
             </td>
             <td width="260px">&nbsp;</td>
             <td width="120px"> <img id="btnImprimir" runat="server" title="Imprimir Avance Fisico" src="../Imagenes/btnImprimir.png" style="cursor:hand" alt="" onclick="getPrint('AreaImpresionFormatoConDatos')"/>   
             </td>
             <td width="260px">
         </td>
             <td width="120px"> <img id="btnImprimirFormato" title="Imprimir Formato de Avance Fisico"  runat="server" src="../Imagenes/btnImprimirFormato.png" style="cursor:hand" alt="" onclick="getPrint('AreaImpresionFormatoSinDatos')"/>   </td>
             <td width="260px">
             </td>
            <td width="40px" >               
                <asp:ImageButton id="ibSalir" ToolTip="Salir" runat="server" ImageUrl="~/Imagenes/btnSalir.png" />
                <%--<input type="button" onClick="history.back()" style="border-style: none; background-image:url('../Imagenes/btnSalir.png'); background-repeat: no-repeat; width:87px; height:23px; cursor:hand;" title="Cerrar" />--%>            
            </td>        
        </tr>
        </table>
    <asp:UpdateProgress ID="UpdateProgress1" runat="Server" AssociatedUpdatePanelID="upPrueba" DisplayAfter="1">
        <progresstemplate>       
            <img alt="Cargando" border="0" height="25" src="../Imagenes/ajax-loader.gif" />
            <strong style="height: 15px"> 
            <span style="font-size: 16pt; color: #f611a4; font-family: Verdana">
            Operación en curso, espere un momento por favor... 
            </span>
            </strong>
    </progresstemplate>
    </asp:UpdateProgress>
       <asp:Label ID="lbl_Indicaciones" runat="server" Style=" font-family:Arial; font-size:10px; color:blue; text-align:left;" Text="(**) Recuerde que los datos de las Visitas son cantidades acumuladas ejecutadas <br/> Por ejemplo sí lo programado acumulado a Junio es 10 unidades, entonces en la Visita 1 podría haber 2 unidades, en la visita 2 podría haber 3 unidades. <br/>El sistema tomará los datos de la última visita para posteriormente elaborar el Informe Mensual (formato 03) <br/> "></asp:Label>    
       <asp:Label ID="lbl_Terminar" runat="server" Style=" font-family:Arial; font-size:10px; text-align:left;" Text="Sólo cuando haya terminado de digitar todas las visitas y este seguro de los datos ingresados haga clic en el check 'Terminar Proceso' y clic en 'Guardar'. <br/> Se puede entrar a esta ficha de avance físico y modificar tantas veces crea conveniente mientras no se haya terminado el proceso."></asp:Label>    
      
     <%--PopUp--%>
    <asp:UpdatePanel ID="upObs" runat="server">
    <ContentTemplate>

<asp:Button ID="btnShowPopup" runat="server" style="display:none" />
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="btnShowPopup" PopupControlID="pnlpopup" X="0" Y="200"
 BackgroundCssClass="modalBackground" PopupDragHandleControlID="pnlpopup" DropShadow="false" Drag="true">
</cc1:ModalPopupExtender>
<asp:Panel ID="pnlpopup" runat="server" BackColor="White" Height="150px" Width="100%" style="display:none;">
    <table style="border: Solid 3px #0099CC; background-color: #FFFFFF; width: 100%; height:100%; color:black; padding: 0px 0px 0px 0px; border-collapse:collapse; border-spacing: 0px 0px;">
        <tr style="background-color: #0099CC">
            <td colspan="11" style="height: 10%; color: White; font-weight: bold; font-size: larger; text-align:center;">
                Ventana de Edición
            </td>
        </tr>     
        <tr style="border-style: solid none none none; border-width: 1px; border-color: #333399; vertical-align:top; background-color:#D5D5D5;">
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid solid; width:50px; ">
                ESPECIFICA GASTOS
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:200px;">
                NOMBRE
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:100px;">
                UNIDAD DE MEDIDA
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                META ANUAL
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                META PROG. <br />MES
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                META PROG. ACUM.
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                EJEC. <br /> MES
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                EJEC. <br /> MES %
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                EJEC. ACUM.
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; width:50px;">
                EJEC. ACUM. %
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none;">
                OBSERVACIÓN
            </td>
        </tr>   
        <tr style="vertical-align:top;">            
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid solid; ">
                <%--<asp:Label ID="lblCod" runat="server" ForeColor="blue" Text="hola"></asp:Label>--%>
                <asp:TextBox ID="txtCod" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
                <asp:HiddenField ID="hdCod" runat="server"></asp:HiddenField>
            </td>             
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">   
                <div id="txtNombre" runat="server" style="font-family: Calibri; font-size: 12px; text-align:left;"></div>             
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">   
                <div id="txtUnidad" runat="server" style="font-family: Calibri; font-size: 12px; text-align:left;"></div>                             
            </td>
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtMetaAnual" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true" ></asp:TextBox>
            </td>            
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtMetaMes" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
            </td>            
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtMetaAcum" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
            </td>          
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtEjecMes" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
            </td> 
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtEjecMesPorc" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
            </td> 
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtMesAcum" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
            </td> 
            <td style="border-width: 1px; border-color: #333399; text-align:center; border-style: none solid solid none; ">
                <asp:TextBox ID="txtMesAcumPorc" runat="server" CssClass="textbox" Width="50px" BorderStyle="None" ReadOnly="true"></asp:TextBox>
            </td>   
            <td style="border-width: 1px; border-color: #333399; text-align:left; border-style: none solid solid none; ">
                <asp:TextBox ID="txtObservacion" runat="server" CssClass="textbox" style="background-color:#ffffcc;" Width="99%" TextMode="MultiLine" onkeyup="setHeight(this);" onkeydown="setHeight(this);" BorderStyle="None"  />                
            </td>
        </tr>          
        <tr>
            <td colspan="11" style="padding:5px 5px 5px; text-align:center; background-color:white;">
                <asp:Button ID="btnUpdate" runat="server" Text="Modificar" OnClick="btnUpdate_Click" CssClass="boton"/> 
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnCancel" runat="server" Text="Cerrar" OnClick="btnCancel_Click" CssClass="boton"/>
            </td>
        </tr>
    </table>
</asp:Panel>            
        </ContentTemplate>
        <Triggers>
        <asp:AsyncPostBackTrigger ControlID="gv_fisico" />        
        </Triggers>
    </asp:UpdatePanel>

    <uc1:Alerta id="alerta" runat="server"></uc1:Alerta>                             
</asp:Content>

